package com.tbit.main.api;

import com.tbit.common.entity.view.Result;
import com.tbit.main.service.MachineService;
import com.tbit.maintain.api.MachineApi;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * MachineApi实现类
 *
 */
@Slf4j
@RestController
public class MachineApiImpl implements MachineApi {

    @Autowired
    private MachineService machineService;

    @Override
    public Result<Object> clearMachineStatus(List<Integer> machineIdList) {
        machineService.clearMachineStatus(machineIdList);
        return Result.success();
    }
}
